﻿<UserControl x:Class="MyFloridaHouse.libSvOpenDistricts.Dialogs.BatchPdfDlgView"
             xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             Visibility="{Binding isDlgActive, Converter={StaticResource ConvertBoolToVisibility}}"
             Width="480"
             Height="450">

    <UserControl.Resources>
        <!-- 
            NOTE: All dictionaries are picked up in the App.xaml, including styles here allows us to see the effects in the Visual Studio Designer
            NOTE: The converter staticResources will show up here as "Could not be resolved", but they will be picked up from App.xaml at runtime
        -->
        <ResourceDictionary Source="/libSvCommonUtilities;component/Resources/Styles.xaml" />
    </UserControl.Resources>
    <!---->
    <Border Margin="0"  CornerRadius="20" BorderBrush="#FF549D9D"  BorderThickness="2"  
            Background="{StaticResource DialogBackgroundBrush}"
            >

        <StackPanel >  
            <Grid Margin="5" ShowGridLines="False" >
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="*" />
                    
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="35"></ColumnDefinition>
                    <ColumnDefinition Width="auto"></ColumnDefinition>
                    <ColumnDefinition Width="auto"></ColumnDefinition>
                    <ColumnDefinition Width="50"></ColumnDefinition>
                    <ColumnDefinition Width="auto"></ColumnDefinition>
                    <ColumnDefinition Width="auto"></ColumnDefinition>
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>

              
                
                <StackPanel  Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center" Grid.Column="0" Grid.ColumnSpan="7" >
                    <sdk:Label Content="BATCH Print" Style="{StaticResource lblMessageStyle}"/>
                </StackPanel>
                
                <StackPanel  Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" Grid.Column="0" Grid.ColumnSpan="7" >
                    <sdk:Label Content="Print All Plan Views to PDF Files" Style="{StaticResource lblMessageStyle}"/>
                </StackPanel>
 
                <TextBlock Margin="5"   Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="4" HorizontalAlignment="Center" TextWrapping="Wrap" Width="400"  Text="BATCH Print automatically creates PDF files for statewide, regional, and individual district views.  Please note that BATCH Print may take a while to run as it includes creating both 8.5x11 and 32x32 maps for every district. If do not want to print every map click the ‘Cancel’ button below and use the ‘Print Map to PDF’ button instead."/>
                <TextBlock Margin="5"   Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="4" HorizontalAlignment="Left" TextWrapping="Wrap" Width="400"  Text="The PDF files created by BATCH Print will be saved to your local drive (in isolated storage).  These files can be found by searching your drive for the file name you choose (enter name below in 'File Name Prefix')."/>
                <TextBlock Margin="5"   Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="4" HorizontalAlignment="Left" TextWrapping="Wrap" Width="400"  Text="NOTE: You must configure hidden system files to display in order to see the PDF files saved in isolated storage. You may need administrator privileges on your computer to access files in isolated storage. Please contact your system administrator if assistance is needed."/>

                <StackPanel  Grid.Row="5" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Grid.ColumnSpan="2">
                    <sdk:Label Content="Map Title" Style="{StaticResource lblMessageStyle}"/>
                </StackPanel>                
                
                <StackPanel  Grid.Row="5" Grid.Column="3" Grid.ColumnSpan="4" Orientation="Horizontal">
                    <TextBox Height="23"  Text="{Binding title, Mode=TwoWay}" Margin="5" Width="250" Background="Azure"  />
                </StackPanel>                
                               
                <StackPanel  Grid.Row="6" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Center" Grid.ColumnSpan="2">
                    <sdk:Label Content="File Name Prefix" Style="{StaticResource lblMessageStyle}"/>
                </StackPanel>                
                
                <StackPanel  Grid.Row="6" Grid.Column="3" Grid.ColumnSpan="4" Orientation="Horizontal">
                    <TextBox Height="23"  Text="{Binding fileNameRoot, Mode=TwoWay}" Margin="5" Width="250" Background="Azure"  />
                </StackPanel> 
                                                
             

            </Grid> 
            
    <sdk:Label Content="IMPORTANT:"  Style="{StaticResource lblMessageStyle}"/>
    <sdk:Label Content="If you have not saved your plan, click cancel and save it first" HorizontalAlignment="Center"/>


    <StackPanel  Orientation="Horizontal" HorizontalAlignment="Right" Margin="15">
        <Button x:Name="CancelButton" Content="Cancel" Command="{Binding CmdCancel}" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,5,0,0"  />
        <Button x:Name="OKButton" Content="OK" Command="{Binding CmdOK}" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,5,0,0"  />
    </StackPanel>
            
    </StackPanel>
            
    </Border>
</UserControl>


